const bind = require("./index.js")
Function.prototype.bind2 = bind;
console.assert(Function.prototype.bind2 !== undefined);

const fn1=function(){
    return this;
};

const newFn1=fn1.bind2({name:"frank"});
console.assert(newFn1().name==="frank")
fn1.bind2()
